<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
    <script src="assets/js/xcConfirm.js"></script>
    <script src="assets/js/base.js"></script>
    <script src="assets/js/js.js" type="text/javascript"></script>
    <script src="assets/js/ajax.helper.js" type="text/javascript"></script>
    <script src="assets/js/popwin.js" type="text/javascript"></script>
    <script src="assets/js/code/codeamazon.js"></script>
    <LINK href="assets/css/css.css" type=text/css rel=stylesheet>
</head>
<body style="background:#FFF">
<input id="amzcodeid" type="hidden" value="0">
<!--表单-->
<table id="info" class="info infoedit" cellspacing="0" style=" margin:20px 0 0 0">
    <tbody>
    <tr>
        <td class="tdn ntd" style="width:75px">UKID</td>
        <td id="enid">1730635031</td>
    </tr>
    <tr>
        <td class="tdn ntd">大类名称</td>
        <td id="root">uk-apparel</td>
    </tr>
    </tr>
    <tr>
        <td class="tdn ntd">分类路径</td>
        <td id="amzpath">/Categories/Baby/Baby Boys 0-24m/Accessories/Gloves & Mittens</td>
    </tr>
    <tr>
        <td class="tdn ntd">路径翻译</td>
        <td><input id="chpath" name="" type="text" maxlength="20" class="txt0" onMouseOver="this.className='txt1';" onMouseOut="this.className='txt0';" style="width:500px" /></td>
    </tr>
    <tr>
        <td class="tdn ntd">关键词</td>
        <td><input id="keywords" name="" type="text" maxlength="20" class="txt0" onMouseOver="this.className='txt1';" onMouseOut="this.className='txt0';" style="width:500px" /></td>
    </tr>
    <tr>
    <tr><td>&nbsp;</td><td>
        <input id="edit" onClick="save()" type="button" value="提交保存" style="width:100px" class="btn0" onMouseOver="this.className='btn1';" onMouseOut="this.className='btn0';" />
    </td>
    </tr>
    </tbody>
</table>
<!--//表单-->
<script>

    $(document).ready(function(){
        var url = document.location.toString();
        var arrUrl = url.split("//");
        var info = '';
        var start = arrUrl[1].indexOf("/");
        var relUrl = arrUrl[1].substring(start);

        if (relUrl.indexOf("?") != -1) {
            info = relUrl.split("?")[1];
        }
        var encode = 0;

        if (info.indexOf("=") != -1) {
            encode =info.split("=")[1];
        }
        //alert(encode);

         if(encode!=0){
             codeAmazonH.detail(encode);
         }
        // userH.getshopdetail(shopid);
    });


    function save()
    {
        var data={
            id: $("#amzcodeid").val(),
            chPath:$("#chpath").val(),
            keyWords:$("#keywords").val()
        };
        codeAmazonH.save(data);
    }
</script>
</body>
</html>
